home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / man / cat.1 / ppm.1 < prev    next >
Text File  |  1995-07-25  |  4KB  |  133 lines

  1.  
  2.  
  3.  
  4.      ppppppppmmmm((((5555))))         XXXXEEEENNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV ((((22227777 SSSSeeeepppptttteeeemmmmbbbbeeeerrrr 1111999999991111))))          ppppppppmmmm((((5555))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.           ppm - portable pixmap file format
  10.  
  11.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  12.           The portable pixmap format is a lowest common denominator
  13.           color image file format.  The definition is as follows:
  14.  
  15.           - A "magic number" for identifying the file type.  A ppm
  16.             file's magic number is the two characters "P3".
  17.  
  18.           - Whitespace (blanks, TABs, CRs, LFs).
  19.  
  20.           - A width, formatted as ASCII characters in decimal.
  21.  
  22.           - Whitespace.
  23.  
  24.           - A height, again in ASCII decimal.
  25.  
  26.           - Whitespace.
  27.  
  28.           - The maximum color-component value, again in ASCII decimal.
  29.  
  30.           - Whitespace.
  31.  
  32.           - Width * height pixels, each three ASCII decimal values
  33.             between 0 and the specified maximum value, starting at the
  34.             top-left corner of the pixmap, proceeding in normal
  35.             English reading order.  The three values for each pixel
  36.             represent red, green, and blue, respectively; a value of 0
  37.             means that color is off, and the maximum value means that
  38.             color is maxxed out.
  39.  
  40.           - Characters from a "#" to the next end-of-line are ignored
  41.             (comments).
  42.  
  43.           - No line should be longer than 70 characters.
  44.  
  45.           Here is an example of a small pixmap in this format:
  46.           P3
  47.           # feep.ppm
  48.           4 4
  49.           15
  50.            0  0  0    0  0  0    0  0  0   15  0 15
  51.            0  0  0    0 15  7    0  0  0    0  0  0
  52.            0  0  0    0  0  0    0 15  7    0  0  0
  53.           15  0 15    0  0  0    0  0  0    0  0  0
  54.  
  55.           Programs that read this format should be as lenient as
  56.           possible, accepting anything that looks remotely like a
  57.           pixmap.
  58.  
  59.           There is also a variant on the format, available by setting
  60.  
  61.  
  62.  
  63.      Page 1                                           (printed 9/7/93)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      ppppppppmmmm((((5555))))         XXXXEEEENNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV ((((22227777 SSSSeeeepppptttteeeemmmmbbbbeeeerrrr 1111999999991111))))          ppppppppmmmm((((5555))))
  71.  
  72.  
  73.  
  74.           the RAWBITS option at compile time.  This variant is
  75.           different in the following ways:
  76.  
  77.           - The "magic number" is "P6" instead of "P3".
  78.  
  79.           - The pixel values are stored as plain bytes, instead of
  80.             ASCII decimal.
  81.  
  82.           - Whitespace is not allowed in the pixels area, and only a
  83.             single character of whitespace (typically a newline) is
  84.             allowed after the maxval.
  85.  
  86.           - The files are smaller and many times faster to read and
  87.             write.
  88.  
  89.           Note that this raw format can only be used for maxvals less
  90.           than or equal to 255.  If you use the _p_p_m library and try to
  91.           write a file with a larger maxval, it will automatically
  92.           fall back on the slower but more general plain format.
  93.  
  94.      SSSSEEEEEEEE AAAALLLLSSSSOOOO
  95.           giftoppm(1), gouldtoppm(1), ilbmtoppm(1), imgtoppm(1),
  96.           mtvtoppm(1), pcxtoppm(1), pgmtoppm(1), pi1toppm(1),
  97.           picttoppm(1), pjtoppm(1), qrttoppm(1), rawtoppm(1),
  98.           rgb3toppm(1), sldtoppm(1), spctoppm(1), sputoppm(1),
  99.           tgatoppm(1), ximtoppm(1), xpmtoppm(1), yuvtoppm(1),
  100.           ppmtoacad(1), ppmtogif(1), ppmtoicr(1), ppmtoilbm(1),
  101.           ppmtopcx(1), ppmtopgm(1), ppmtopi1(1), ppmtopict(1),
  102.           ppmtopj(1), ppmtopuzz(1), ppmtorgb3(1), ppmtosixel(1),
  103.           ppmtotga(1), ppmtouil(1), ppmtoxpm(1), ppmtoyuv(1),
  104.           ppmdither(1), ppmforge(1), ppmhist(1), ppmmake(1),
  105.           ppmpat(1), ppmquant(1), ppmquantall(1), ppmrelief(1),
  106.           pnm(5), pgm(5), pbm(5)
  107.  
  108.      AAAAUUUUTTTTHHHHOOOORRRR
  109.           Copyright (C) 1989, 1991 by Jef Poskanzer.
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.      Page 2                                           (printed 9/7/93)
  130.  
  131.  
  132.  
  133.